package org.dromara.finance.domain.vo;

import org.dromara.finance.domain.CustomerCategory;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 客户分类视图对象 customer_category
 *
 * @author xxy
 * @date 2025-08-15
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = CustomerCategory.class)
public class CustomerCategoryVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    private Long id;

    /**
     * 分类编码
     */
    @ExcelProperty(value = "分类编码")
    private String code;

    /**
     * 分类名称
     */
    @ExcelProperty(value = "分类名称")
    private String name;

    /**
     * 父级分类
     */
    @ExcelProperty(value = "父级分类")
    private Long pid;

    /**
     * 启用状态
     */
    @ExcelProperty(value = "启用状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_enable")
    private Long customerCategoryStatus;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

}
